package com.yuan;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/permission")
public class TestController {

    @PostMapping(value = "/check")
    @PermissionsAnnotation
    public JSONObject getGroupList(@RequestBody JSONObject request) {

        return JSON.parseObject("{\"message\":\"SUCCESS\",\"code\":200}");
    }

}
